package com.example.wuqujingdianphone.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.wuqujingdianphone.R;
import com.example.wuqujingdianphone.bean.BookSortBean;
import com.example.wuqujingdianphone.bean.TuShuFenlei;

import java.util.List;

/**
 * Created by 29083 on 2018/3/28.
 */

public class BookTypeAdapter extends BaseQuickAdapter<TuShuFenlei, BaseViewHolder> {

    private Context context;

    public BookTypeAdapter(Context context, @Nullable List<TuShuFenlei> data) {
        super(R.layout.item_book_sort, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, TuShuFenlei item) {

      /*  Glide.with(context)
                .load(ApiConfig.APP_URL + item.spic)
                .error(R.mipmap.logo)
                .placeholder(R.mipmap.logo)
                .centerCrop()
                .into((ImageView) helper.getView(R.id.image));
*/
        helper.setText(R.id.book_name, item.getName());

    }
}

